<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>鼠标划过变色</title>
		<style type="text/css">
			.bg{
			width:150px;
			height:150px;
			background-color:red  /*hover 选择器用于选择鼠标指针浮动在上面的元素*/
		}			
		.bg:hover{
			background-color: blue;
		}
		</style>		
	</head>
	<body>
		<div class="bg"></div>
	</body>
</html>
